<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="inclued/base.jsp" %>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Book store</title>
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/font-awesome.css">
	<link rel="stylesheet" href="css/style.css">
</head>
<body>

	<div class="container" style="margin:20px auto">&nbsp; 
		<%@ include file="inclued/top.jsp"%>
		<div class="content">
        	<!-- head end-->
        	<div class="container-fluid">
        		<div class="row-fluid">
	        		<div class="span9 block">
	        			<p class="block-heading">
	        				<i class="icon-list"></i>
	        				商品列表
	        			</p>
	        			<div class="block-body">
	        				<div class="search-well">
				                <form class="form-inline">
				                    <input class="input-xlarge" placeholder="请输入关键字" type="text">
				                    <button class="btn" type="button">Go</button>
				                </form>
				            </div>

				            <table class="table list">
				            	<tbody>
				            		<c:forEach items="${page.list }" var="b">
				            		<tr>
				            			<td width="130"><img src="showImage.img?n=${b.pic }" alt="" class=""></td>
				            			<td>
				            				<strong><a href="product.html">${b.bookName }</a></strong>
						            		<p>
						            			作　　者：${b.bookAuthor }<br/>
						            			出 版 社：${b.publish.pubname }<br>
						            			定　 价：<span class="muted" style="text-decoration: line-through;">￥${b.price }</span> <br>
												商  城  价：<span class="text-error">￥${b.salePrice }</span><br>
						            		</p>
						            		<div>
						            			<a href="addShopCar.jspx?id=${b.id}" class="btn btn-mini btn-primary">放入购物车</a>
						            			<a href="#" class="btn btn-mini">收藏</a>
						            		</div>
						            	</td>
				            		</tr>
				            		</c:forEach>
				            	</tbody>
				            </table>
							
							<div class="pagination pull-right">
							  <ul>
							    <li><a href="#">首页</a></li>
							    <li><a href="#">上一页</a></li>
							    <li><a href="#">下一页</a></li>
							    <li><a href="#">尾页</a></li>
							  </ul>
							</div>

	        			</div>
	        		</div>
	        		<%@ include file="inclued/right.jsp"%>
	        	</div>
	        	 <footer>
                    <hr>
                    <p>© 2012 <a href="http://www.kaishengit.com" target="_blank">凯盛软件</a></p>
                </footer>
        	</div>
        	
        	
    	</div>
	</div>
	
</body>
</html>